import java.util.Arrays;
import java.util.Scanner;

public class day07 {

    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入长度");
        int a = sc.nextInt();
        int [] arr=new int[a];

        boolean tu=true;
        int count=0;
       while (tu){
           for (int i = 0; i <arr.length; i++) {
               arr[i] = sc.nextInt();
               count++;

               if (arr.length==count){
                   tu=false;
               }
           }
       }
        System.out.println(Arrays.toString(arr));
    }
}
